package com.zff.rental.utils.sql.impl;

import com.zff.rental.utils.sql.Condition;
import com.zff.rental.utils.sql.JoinConditionConnector;
import com.zff.rental.utils.sql.JoinNext;

/**
 * @author HCY
 */
class JoinNextImpl extends SqlContextHolder implements JoinNext {
    public JoinNextImpl(SqlContext sqlContext) {
        super(sqlContext);
    }

    @Override
    public <V> JoinConditionConnector on(Condition<V> condition) {
        return sqlContext.getOn().on(condition);
    }

    @Override
    public String generateSql() {
        return sqlContext.getEndSql().generateSql();
    }
}
